package org.itcast.travel.service;

import org.itcast.travel.pojo.Blog;
import org.itcast.travel.pojo.BlogQueryParam;
import org.itcast.travel.pojo.PageBean;

import java.util.List;

public interface BlogService {
     void add(Blog blog);

     Blog getById(Integer id);

     PageBean page(BlogQueryParam blogQueryParam);

     PageBean pageById(Integer userId, BlogQueryParam blogQueryParam);

     void delete(List<Integer> ids);

     void update(Blog blog);

     void updateLike(Integer blogId, Integer userId);

     Integer selectOneLike(Integer blogId, Integer userId);

     PageBean getLike(BlogQueryParam blogQueryParam, Integer userId);

     Integer selectOneCollect(Integer blogId, Integer userId);

     void updateCollect(Integer blogId, Integer userId);

     PageBean getCollect(BlogQueryParam blogQueryParam, Integer userId);

     void updateLook(Integer blogId, Integer userId);

     PageBean getLook(BlogQueryParam blogQueryParam, Integer userId);
}
